package chapter02

/**
 * @program lu-scala01
 * @description:
 * @author: zhanglu
 * @create: 2022-02-10 18:54:00
 */
object C02_Variable {

  def main(args: Array[String]): Unit = {

    /*
      声明变量时，类型可以忽略，编译器自动推导
      变量声明，必须赋初始值
     */
    val a1: Int = 10;
    var a2 = 10;
    val a3 = 10;

  }

}
